package com.example.auth.mapper;

import com.example.auth.entity.SysUser;
import com.example.auth.entity.dto.SysUserCreateDTO;
import com.example.auth.entity.dto.SysUserEditDTO;
import com.example.auth.entity.vo.SysUserQueryVO;
import com.example.auth.excel.SysUserExportExcel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ISysUserMapper {

    ISysUserMapper INSTANCT = Mappers.getMapper(ISysUserMapper.class);

    SysUserQueryVO sysUserToSysUserQueryVO(SysUser sysUser);

    SysUser sysUserCreateDTOToSysUser(SysUserCreateDTO sysUserCreateDTO);

    SysUser sysUserEditDTOToSysUser(SysUserEditDTO sysUserEditDTO);

    List<SysUserExportExcel> sysUserToSysUserExportExcel(List<SysUser> sysUserList);

}
